package config

type System struct {
	Env                  string `mapstructure:"env" json:"env" yaml:"env"`                                  // 环境值
	Addr                 int    `mapstructure:"addr" json:"addr" yaml:"addr"`                               // 端口值
	DbType               string `mapstructure:"db-type" json:"db-type" yaml:"db-type"`                      // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql
	OssType              string `mapstructure:"oss-type" json:"oss-type" yaml:"oss-type"`                   // Oss类型
	UseMultipoint        bool   `mapstructure:"use-multipoint" json:"use-multipoint" yaml:"use-multipoint"` // 多点登录拦截
	UseRedis             bool   `mapstructure:"use-redis" json:"use-redis" yaml:"use-redis"`                // 使用redis
	LimitCountIP         int    `mapstructure:"iplimit-count" json:"iplimit-count" yaml:"iplimit-count"`
	LimitTimeIP          int    `mapstructure:"iplimit-time" json:"iplimit-time" yaml:"iplimit-time"`
	DfitcUploadDir       string `mapstructure:"dfitc-upload-dir" json:"dfitc-upload-dir" yaml:"dfitc-upload-dir"`
	ExportFileDir        string `mapstructure:"export-file-dir" json:"export-file-dir" yaml:"export-file-dir"`                      // 导出文件目录
	AccessHost           string `mapstructure:"access-host" json:"access-host" yaml:"access-host"`                                  // 域名前缀
	UriLimiterExpire     int    `mapstructure:"uri_limiter_expire" json:"uri_limiter_expire" yaml:"uri_limiter_expire"`             // 域名前缀
	UriControlLimitCount int    `mapstructure:"UriControl_limit_count" json:"UriControl_limit_count" yaml:"UriControl_limit_count"` // 域名前缀
}
